package com.shrcl.engineerprocess.domain.impl;

import com.shrcl.engineerprocess.domain.TSCProcessRole;
import com.shrcl.engineerprocess.domain.TSCProcessRoleDAO;
import edu.fudan.mylang.pf.BaseDAOService;
import edu.fudan.mylang.pf.IGenericQuery;
import org.springframework.stereotype.Service;

@Service("com.shrcl.engineerprocess.domain.TSCProcessRoleDAO")
public class TSCProcessRoleDAOImpl extends BaseDAOService<TSCProcessRole> implements TSCProcessRoleDAO {
  public TSCProcessRole get() {IGenericQuery<TSCProcessRole> query=getObjectFactory().createGenericQuery(TSCProcessRole.class,"select e from com.shrcl.engineerprocess.domain.impl.TSCProcessRoleImpl as e   where  e.active = 1      ");
    TSCProcessRole _uniqueResult = query.uniqueResult();
    return _uniqueResult;
  }
}
